#include <stdio.h>
#include <math.h>

int main( )
{
    __int64 n;
    double a, b;
    while ( scanf("%I64d", &n) != EOF )
    {
        if ( n == 0 ) break;
        b = log10( 1.0 * n / 6 ) + log10( 1.0 * ( n + 1 ) )+ log10( 1.0 * ( n + 2 ) 

);
        a = b - int( b );
        printf("%.2fE%d\n", pow( 10, a ), int( b ) );
    }
    return 0;
}
